import { ApiProperty } from '@nestjs/swagger'

export class RefundApplyDto {
  @ApiProperty({ description: '', required: true, default: '' })
  readonly order_id: number

  @ApiProperty({ description: '', required: true, default: '' })
  readonly user_remark: string
}

export class RefundOperateDto {
  @ApiProperty({ description: '', required: true, default: '' })
  readonly id: number

  @ApiProperty({ description: '', required: true, default: '' })
  readonly status: number

  @ApiProperty({ description: '', required: false, default: '' })
  readonly merchant_remark: string
}

export class ListRefundDto {
  @ApiProperty({ description: '', required: false, default: '' })
  readonly page?: number

  @ApiProperty({ description: '', required: false, default: '' })
  readonly pageSize?: number

  @ApiProperty({ description: '', required: false, default: '' })
  readonly order_id: string

  @ApiProperty({ description: '退款状态：1待处理 2已同意 3已拒绝', required: false, default: '', })
  readonly status: number

  // 时间范围参数
  @ApiProperty({ description: '申请时间', required: false, default: '' })
  readonly start?: number

  @ApiProperty({ description: '', required: false, default: '' })
  readonly end?: number

  @ApiProperty({ description: '最近操作时间', required: false, default: '' })
  readonly operateStart?: number

  @ApiProperty({ description: '', required: false, default: '' })
  readonly operateEnd?: number
}

export class DelRefundDto {
  @ApiProperty({ description: '', required: true, default: '' })
  readonly id: number
}
